Page({

  /**
   * 页面的初始数据
   */
  data: {
    tit:"tit1",
    article:[
      {
        id:2323,
        headPic:"../../images/jpg/head_pic.jpg",
        name:"蓝天百余",
        kind:"海鲜冻品",
        tel:13888888888,
        des:"优品客天津国际贸易有限公司直供西班牙1672去耳猪头5200元/吨。正关进口批次检验检疫证，发票",
        img:[
          "../../images/jpg/preview.jpg",
          "../../images/jpg/preview.jpg",
          "../../images/jpg/preview.jpg",
          "../../images/jpg/preview.jpg"
        ],
        addTime:"2018-02-14 23：26"
      },
      {
        id: 2323,
        headPic: "../../images/jpg/head_pic.jpg",
        name: "蓝天百余",
        kind: "海鲜冻品",
        tel: 13888888888,
        des: "优品客天津国际贸易有限公司直供西班牙1672去耳猪头5200元/吨。正关进口批次检验检疫证，发票",
        img: [
         
        ],
        addTime: "2018-02-14 23：26"
      },
      {
        id: 2323,
        headPic: "../../images/jpg/head_pic.jpg",
        name: "蓝天百余",
        kind: "海鲜冻品",
        tel: 13888888888,
        des: "优品客天津国际贸易有限公司直供西班牙1672去耳猪头5200元/吨。正关进口批次检验检疫证，发票",
        img: [
          "../../images/jpg/preview.jpg",
          "../../images/jpg/preview.jpg",
          "../../images/jpg/preview.jpg",
          "../../images/jpg/preview.jpg"
        ],
        addTime: "2018-02-14 23：26"
      },
      {
        id: 2323,
        headPic: "../../images/jpg/head_pic.jpg",
        name: "蓝天百余",
        kind: "海鲜冻品",
        tel: 13888888888,
        des: "优品客天津国际贸易有限公司直供西班牙1672去耳猪头5200元/吨。正关进口批次检验检疫证，发票",
        img: [
          "../../images/jpg/preview.jpg",
          "../../images/jpg/preview.jpg",
          "../../images/jpg/preview.jpg",
          "../../images/jpg/preview.jpg"
        ],
        addTime: "2018-02-14 23：26"
      }
    ],
    merchant:[
      {
        id: 2323,
        headPic: "../../images/jpg/head_pic.jpg",
        title: "蓝天百余",
        tel: 13888888888,
        address: "北京市丰台区南三环西路85号",
        star:3,
        location:12,
      },
      {
        id: 2323,
        headPic: "../../images/jpg/head_pic.jpg",
        title: "蓝天百余",
        tel: 13888888888,
        address: "北京市丰台区南三环西路85号",
        star: 5,
        location: 12,
      }
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    wx:wx.setNavigationBarTitle({
      title: '我的收藏',
      success: function(res) {},
      fail: function(res) {},
      complete: function(res) {},
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
    
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
    
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
    
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
    
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
    
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    
  },
  changeNav(e) {
    this.setData({tit:e.target.id})
  }
})